package webapp.mvc.finders;

import com.zoowii.jpa_utils.extension.ExtendFinder;
import webapp.mvc.enums.IntBooleans;
import webapp.mvc.models.ShopEntity;

public class ShopFinder extends ExtendFinder<String, ShopEntity> {
    public ShopFinder(Class<?> kCls, Class<?> mCls) {
        super(kCls, mCls);
    }

    public ShopEntity findByName(String name) {
        return this.where().eq("deleted", IntBooleans.FALSE)
                .eq("name", name).first();
    }
}
